import request from "@/utils/request.js";

export const querySysCodeAll = (queryParams) => {
    return request({
        method: "get",
        url: "admin/sysCode/querySysCodeAll",
        params: queryParams
    });
}

export const addSysCode = (params) => {
    return request({
        method: "post",
        url: "admin/sysCode/addSysCode",
        data: params
    })
}

export const delSysCode = (codeType) => {
    return request({
        method: "delete",
        url: "admin/sysCode/delSysCode/" + codeType
    })
}

export const editSysCode = (params) => {
    return request({
        method: "put",
        url: "admin/sysCode/editSysCode",
        data: params
    })
}

export const querySysCodeValueByCodeType = (codeType) => {
    return request({
        method: "get",
        url: "admin/sysCode/querySysCodeValueByCodeType/" + codeType,
    })
}